package day5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class CheckPass {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        String answer="";
        do {
            System.out.println("上机编写程序！");
            System.out.print("请老师检查，合格了(y/n)？");
            answer = in.next();
        }while (!answer.equals("y"));
        System.out.println("可以出去玩了！");
    }
}
